package com.sg.service.biz.component.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.biz.component.common.MultitermOptionCodeTransitionMultirowResultDto;
import com.sg.dto.biz.component.req.*;
import com.sg.dto.biz.component.res.*;
import com.sg.service.biz.component.ConfSchemeService;
import com.sg.service.biz.component.nb.NbNetDisk;
import com.sg.common.exception.Assert;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class NetDiskServiceImpl
        implements com.wicket.okrcomponent.biz.service.NetDiskService {

    @Resource
    private RedisUtil redisUtil;
    //@Resource
    //private MCustomFields6Service mCustomFields6Service;
    @Resource
    private NbNetDisk nbNetDisk;
    @Resource
    private ConfSchemeService confSchemeService;
//@Resource
    //private MOmsResourceFileService mOmsResourceFileService;

    /**
     * D2查询上传配置信息详情(公共)[10408]
     * gen by moon at 12/15/2024, 4:50:06 PM
     */
    @Trace(operationName = "D2查询上传配置信息详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUploadConfigInfoDetailComRespDto queryUploadConfigInfoDetailCom(QueryUploadConfigInfoDetailComReqDto reqDto) {


        QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_1 = null;
        ImplementMultitermOptionCodeTransitionMultirowResultRespDto multiColumnToMultiRowRes_1 = null;
        ImplementMultitermOptionCodeTransitionMultirowResultRespDto multiColumnToMultiRowRes_3 = null;
        ImplementMultitermOptionCodeTransitionMultirowResultRespDto multiColumnToMultiRowRes_5 = null;
//virtualUsage D2查上传类型（空间）  73573
        QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
        QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto = new QueryConfItemMatchAnswerDetailComReqDto();
        queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2029980_1_73573
        queryConfItemMatchAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:2029979_1_73573
        queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("UPLOAD_TYPE");//CUSTOM_CONVENTION//sourceId:2029978_1_73573
        queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:2029987_1_73573

        /*D2查上传类型（空间）[2486]   */
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(), "D2查询上传配置信息详情(公共)-D2查上传类型（空间）-开通对象ID不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjType(), "D2查询上传配置信息详情(公共)-D2查上传类型（空间）-开通对象类型编码不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(), "D2查询上传配置信息详情(公共)-D2查上传类型（空间）-配置项标识不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(), "D2查询上传配置信息详情(公共)-D2查上传类型（空间）-是否标准答案不能为空", false);
        queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto)/*vcase invoke isSameApp*/;


        queryConfItemMatchAnswerDetailComRespDto_1 = queryConfItemMatchAnswerDetailComRespDto;
        if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("LOCAL_MODEL"))) {
            //if(D2查上传类型（空间）.答案值 等于 本地模式)  73574

            QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
            QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto = new QueryConfItemMatchAnswerListComReqDto();
            queryConfItemMatchAnswerListComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2030076_1_73578
            queryConfItemMatchAnswerListComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:2030075_1_73578
            queryConfItemMatchAnswerListComReqDto.setConfItemCode("LOCAL_STORAGE_CONFIG");//CUSTOM_CONVENTION//sourceId:2030074_1_73578
            queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:2030077_1_73578

            /*D2查询本地上传配置信息(空间)[2505]   */
            Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(), "D2查询上传配置信息详情(公共)-D2查询本地上传配置信息(空间)-开通对象ID不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(), "D2查询上传配置信息详情(公共)-D2查询本地上传配置信息(空间)-开通对象类型编码不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(), "D2查询上传配置信息详情(公共)-D2查询本地上传配置信息(空间)-配置项标识不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(), "D2查询上传配置信息详情(公共)-D2查询本地上传配置信息(空间)-是否标准答案不能为空", false);
            queryConfItemMatchAnswerListComRespDto = confSchemeService.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto)/*vcase invoke isSameApp*/;


//ModelCode: multiColumnToMultiRow
            ImplementMultitermOptionCodeTransitionMultirowResultRespDto multiColumnToMultiRowRes = null;
            if (queryConfItemMatchAnswerListComRespDto != null) {
                ImplementMultitermOptionCodeTransitionMultirowResultReqDto multiColumnToMultiRowReq = new ImplementMultitermOptionCodeTransitionMultirowResultReqDto();
                if (queryConfItemMatchAnswerListComRespDto != null && queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList() != null && !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList())) {
                    multiColumnToMultiRowReq.setMultitermOptionCodeTransitionMultirowResultList(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().stream().map(item -> BeanUtil.toBean(item, MultitermOptionCodeTransitionMultirowResultDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:2030039_1_73579
                }

                /*M2-转本地存储上传配置信息[5197]   */

                multiColumnToMultiRowRes = nbNetDisk.implementMultitermOptionCodeTransitionMultirowResult(multiColumnToMultiRowReq);


                multiColumnToMultiRowRes_1 = multiColumnToMultiRowRes;
            }
        } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("MINIO_MODEL"))) {
            //elseif(D2查上传类型（空间）.答案值 等于 MINIO模式)  73576

            QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_2 = null;
            QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto_1 = new QueryConfItemMatchAnswerListComReqDto();
            queryConfItemMatchAnswerListComReqDto_1.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2030033_1_73582
            queryConfItemMatchAnswerListComReqDto_1.setResultAspObjType("TENANT_SPACE");//sourceId:2030032_1_73582
            queryConfItemMatchAnswerListComReqDto_1.setConfItemCode("MINIO_STORAGE_CONFIG");//CUSTOM_CONVENTION//sourceId:2030031_1_73582
            queryConfItemMatchAnswerListComReqDto_1.setIsPlatData("FALSE");//sourceId:2030034_1_73582

            /*D2查minio上传配置信息(空间)[2505]   */
            Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getResultAspObjId(), "D2查询上传配置信息详情(公共)-D2查minio上传配置信息(空间)-开通对象ID不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getResultAspObjType(), "D2查询上传配置信息详情(公共)-D2查minio上传配置信息(空间)-开通对象类型编码不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getConfItemCode(), "D2查询上传配置信息详情(公共)-D2查minio上传配置信息(空间)-配置项标识不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getIsPlatData(), "D2查询上传配置信息详情(公共)-D2查minio上传配置信息(空间)-是否标准答案不能为空", false);
            queryConfItemMatchAnswerListComRespDto_2 = confSchemeService.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto_1)/*vcase invoke isSameApp*/;


//ModelCode: multiColumnToMultiRow
            ImplementMultitermOptionCodeTransitionMultirowResultRespDto multiColumnToMultiRowRes_2 = null;
            if (queryConfItemMatchAnswerListComRespDto_2 != null) {
                ImplementMultitermOptionCodeTransitionMultirowResultReqDto multiColumnToMultiRowReq_1 = new ImplementMultitermOptionCodeTransitionMultirowResultReqDto();
                if (queryConfItemMatchAnswerListComRespDto_2 != null && queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList() != null && !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList())) {
                    multiColumnToMultiRowReq_1.setMultitermOptionCodeTransitionMultirowResultList(queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList().stream().map(item -> BeanUtil.toBean(item, MultitermOptionCodeTransitionMultirowResultDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:2030116_1_73581
                }

                /*M2-转minio存储上传配置信息[5197]   */

                multiColumnToMultiRowRes_2 = nbNetDisk.implementMultitermOptionCodeTransitionMultirowResult(multiColumnToMultiRowReq_1);


                multiColumnToMultiRowRes_3 = multiColumnToMultiRowRes_2;
            }
        } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("ALI_MODEL"))) {
            //elseif(D2查上传类型（空间）.答案值 等于 阿里模式)  73577

            QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_4 = null;
            QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto_2 = new QueryConfItemMatchAnswerListComReqDto();
            queryConfItemMatchAnswerListComReqDto_2.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2030024_1_73583
            queryConfItemMatchAnswerListComReqDto_2.setResultAspObjType("TENANT_SPACE");//sourceId:2030023_1_73583
            queryConfItemMatchAnswerListComReqDto_2.setConfItemCode("ALI_STORAGE_CONFIG");//CUSTOM_CONVENTION//sourceId:2030022_1_73583
            queryConfItemMatchAnswerListComReqDto_2.setIsPlatData("FALSE");//sourceId:2030025_1_73583

            /*D2查阿里云OSS上传配置信息(空间)[2505]   */
            Assert.isNull(queryConfItemMatchAnswerListComReqDto_2.getResultAspObjId(), "D2查询上传配置信息详情(公共)-D2查阿里云OSS上传配置信息(空间)-开通对象ID不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerListComReqDto_2.getResultAspObjType(), "D2查询上传配置信息详情(公共)-D2查阿里云OSS上传配置信息(空间)-开通对象类型编码不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerListComReqDto_2.getConfItemCode(), "D2查询上传配置信息详情(公共)-D2查阿里云OSS上传配置信息(空间)-配置项标识不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerListComReqDto_2.getIsPlatData(), "D2查询上传配置信息详情(公共)-D2查阿里云OSS上传配置信息(空间)-是否标准答案不能为空", false);
            queryConfItemMatchAnswerListComRespDto_4 = confSchemeService.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto_2)/*vcase invoke isSameApp*/;


//ModelCode: multiColumnToMultiRow
            ImplementMultitermOptionCodeTransitionMultirowResultRespDto multiColumnToMultiRowRes_4 = null;
            if (queryConfItemMatchAnswerListComRespDto_4 != null) {
                ImplementMultitermOptionCodeTransitionMultirowResultReqDto multiColumnToMultiRowReq_2 = new ImplementMultitermOptionCodeTransitionMultirowResultReqDto();
                if (queryConfItemMatchAnswerListComRespDto_4 != null && queryConfItemMatchAnswerListComRespDto_4.getConfSchemeItemResultList() != null && !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto_4.getConfSchemeItemResultList())) {
                    multiColumnToMultiRowReq_2.setMultitermOptionCodeTransitionMultirowResultList(queryConfItemMatchAnswerListComRespDto_4.getConfSchemeItemResultList().stream().map(item -> BeanUtil.toBean(item, MultitermOptionCodeTransitionMultirowResultDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:2030082_1_73584
                }

                /*M2-转阿里云存储上传配置信息[5197]   */

                multiColumnToMultiRowRes_4 = nbNetDisk.implementMultitermOptionCodeTransitionMultirowResult(multiColumnToMultiRowReq_2);


                multiColumnToMultiRowRes_5 = multiColumnToMultiRowRes_4;
            }
        }
        QueryUploadConfigInfoDetailComRespDto retData = new QueryUploadConfigInfoDetailComRespDto();
        if (multiColumnToMultiRowRes_1 != null) {
            retData.setLocalStorageRootPath(multiColumnToMultiRowRes_1.getLocalStorageRootPath());//SimpleFieldAssign//sourceId:2037003_1
            retData.setLocalDisplayRootPath(multiColumnToMultiRowRes_1.getLocalDisplayRootPath());//SimpleFieldAssign//sourceId:2037004_1
        }
        if (multiColumnToMultiRowRes_3 != null) {
            retData.setMinioDisplayRootPath(multiColumnToMultiRowRes_3.getMinioDisplayRootPath());//SimpleFieldAssign//sourceId:2030223_1
            retData.setMinioServiceAddress(multiColumnToMultiRowRes_3.getMinioServiceAddress());//SimpleFieldAssign//sourceId:2030224_1
            retData.setMinioKey(multiColumnToMultiRowRes_3.getMinioKey());//SimpleFieldAssign//sourceId:2030225_1
            retData.setMinioSecretKey(multiColumnToMultiRowRes_3.getMinioSecretKey());//SimpleFieldAssign//sourceId:2030226_1
            retData.setMinioRegionName(multiColumnToMultiRowRes_3.getMinioRegionName());//SimpleFieldAssign//sourceId:2030227_1
            retData.setMinioRoleAuthorizationCode(multiColumnToMultiRowRes_3.getMinioRoleAuthorizationCode());//SimpleFieldAssign//sourceId:2030228_1
            retData.setMinioSessionName(multiColumnToMultiRowRes_3.getMinioSessionName());//SimpleFieldAssign//sourceId:2030229_1
            retData.setMinioTemporaryIdentityExpiration(multiColumnToMultiRowRes_3.getMinioTemporaryIdentityExpiration());//SimpleFieldAssign//sourceId:2030230_1
            retData.setMinioBucketName(multiColumnToMultiRowRes_3.getMinioBucketName());//SimpleFieldAssign//sourceId:2030231_1
            retData.setMinioTemporaryFileUploadAction(multiColumnToMultiRowRes_3.getMinioTemporaryFileUploadAction());//SimpleFieldAssign//sourceId:2030232_1
        }
        if (multiColumnToMultiRowRes_5 != null) {
            retData.setAliyunAk(multiColumnToMultiRowRes_5.getAliyunAk());//SimpleFieldAssign//sourceId:2030233_1
            retData.setAliyunSk(multiColumnToMultiRowRes_5.getAliyunSk());//SimpleFieldAssign//sourceId:2030234_1
            retData.setAliyunAkFields(multiColumnToMultiRowRes_5.getAliyunAkFields());//SimpleFieldAssign//sourceId:2030235_1
            retData.setAliyunSkFields(multiColumnToMultiRowRes_5.getAliyunSkFields());//SimpleFieldAssign//sourceId:2030236_1
            retData.setAliyunOssDisplayRootPath(multiColumnToMultiRowRes_5.getAliyunOssDisplayRootPath());//SimpleFieldAssign//sourceId:2030237_1
            retData.setAliyunOssServiceAddress(multiColumnToMultiRowRes_5.getAliyunOssServiceAddress());//SimpleFieldAssign//sourceId:2030238_1
            retData.setAliyunOssKey(multiColumnToMultiRowRes_5.getAliyunOssKey());//SimpleFieldAssign//sourceId:2030239_1
            retData.setAliyunOssSecretKey(multiColumnToMultiRowRes_5.getAliyunOssSecretKey());//SimpleFieldAssign//sourceId:2030240_1
            retData.setAliyunOssRegionName(multiColumnToMultiRowRes_5.getAliyunOssRegionName());//SimpleFieldAssign//sourceId:2030241_1
            retData.setAliyunOssRoleAuthorizationCode(multiColumnToMultiRowRes_5.getAliyunOssRoleAuthorizationCode());//SimpleFieldAssign//sourceId:2030242_1
            retData.setAliyunSessionName(multiColumnToMultiRowRes_5.getAliyunSessionName());//SimpleFieldAssign//sourceId:2030243_1
            retData.setAliyunOssTemporaryIdentityExpiration(multiColumnToMultiRowRes_5.getAliyunOssTemporaryIdentityExpiration());//SimpleFieldAssign//sourceId:2030244_1
            retData.setAliyunOssBucketName(multiColumnToMultiRowRes_5.getAliyunOssBucketName());//SimpleFieldAssign//sourceId:2030245_1
            retData.setAliyunOssBucketDomain(multiColumnToMultiRowRes_5.getAliyunOssBucketDomain());//SimpleFieldAssign//sourceId:2034500_1
        }
        if (queryConfItemMatchAnswerDetailComRespDto_1 != null) {
            retData.setUploadType(queryConfItemMatchAnswerDetailComRespDto_1.getEndValue());//SimpleFieldAssign//sourceId:2030246_1
        }


        return retData;
    }

    /**
     * D2执行上传文件名称转单字段(公共)[10418]
     * gen by moon at 12/6/2024, 10:02:39 PM
     */
    @Trace(operationName = "D2执行上传文件名称转单字段(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementUploadFileNameToFieldComRespDto implementUploadFileNameToFieldCom(ImplementUploadFileNameToFieldComReqDto reqDto) {


        ImplementUploadFileNameToFieldRespDto uploadFileNameToSingleFieldRes_1 = null;
//步骤0: M2执行上传文件名称转单字段（特殊方法） - implementUploadFileNameToField
        //ModelCode: uploadFileNameToSingleField
        ImplementUploadFileNameToFieldRespDto uploadFileNameToSingleFieldRes = null;
        ImplementUploadFileNameToFieldReqDto uploadFileNameToSingleFieldReq = new ImplementUploadFileNameToFieldReqDto();
        if (reqDto != null) {
            uploadFileNameToSingleFieldReq.setResourceFileName(reqDto.getResourceFileName());//SimpleFieldAssign//sourceId:2033706_1
        }

        /*M2执行上传文件名称转单字段（特殊方法）[10417]   */
        Assert.isNull(uploadFileNameToSingleFieldReq.getResourceFileName(), "D2执行上传文件名称转单字段(公共)-M2执行上传文件名称转单字段（特殊方法）-资源文件名称不能为空", false);
        uploadFileNameToSingleFieldRes = nbNetDisk.implementUploadFileNameToField(uploadFileNameToSingleFieldReq);


        uploadFileNameToSingleFieldRes_1 = uploadFileNameToSingleFieldRes;

        ImplementUploadFileNameToFieldComRespDto retData = new ImplementUploadFileNameToFieldComRespDto();
        if (uploadFileNameToSingleFieldRes_1 != null) {
            retData.setResourceFileName(uploadFileNameToSingleFieldRes_1.getResourceFileName());//SimpleFieldAssign//sourceId:2033711_1
            retData.setResourceFileExtension(uploadFileNameToSingleFieldRes_1.getResourceFileExtension());//SimpleFieldAssign//sourceId:2033712_1
            retData.setPhyFileUuid(uploadFileNameToSingleFieldRes_1.getPhyFileUuid());//SimpleFieldAssign//sourceId:2033713_1
        }


        return retData;
    }

    /**
     * D2执行物理文件上传(公共)[10420]
     * gen by moon at 12/12/2024, 9:01:33 PM
     */
    @Trace(operationName = "D2执行物理文件上传(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementPhpFileUploadComRespDto implementPhpFileUploadCom(ImplementPhpFileUploadComReqDto reqDto) {


        ImplementPhpFileUploadRespDto phpFileUploadRes_1 = null;
//步骤0: M2执行物理文件上传（特殊方法） - implementPhpFileUpload
        //ModelCode: phpFileUpload
        ImplementPhpFileUploadRespDto phpFileUploadRes = null;
        ImplementPhpFileUploadReqDto phpFileUploadReq = new ImplementPhpFileUploadReqDto();
        if (reqDto != null) {
            phpFileUploadReq.setHashCode(reqDto.getHashCode());//SimpleFieldAssign//sourceId:2036900_1
            phpFileUploadReq.setFullPath(reqDto.getFullPath());//SimpleFieldAssign//sourceId:2033722_1
            phpFileUploadReq.setFileContent(reqDto.getFileContent());//SimpleFieldAssign//sourceId:2033724_1
            phpFileUploadReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:2033723_1
            phpFileUploadReq.setPhyFileUuid(reqDto.getPhyFileUuid());//SimpleFieldAssign//sourceId:2033721_1
            phpFileUploadReq.setResourceFileExtension(reqDto.getResourceFileExtension());//SimpleFieldAssign//sourceId:2033720_1
        }

        /*M2执行物理文件上传（特殊方法）[10419]   */
        Assert.isNull(phpFileUploadReq.getFullPath(), "D2执行物理文件上传(公共)-M2执行物理文件上传（特殊方法）-全路径地址不能为空", false);
        Assert.isNull(phpFileUploadReq.getFileContent(), "D2执行物理文件上传(公共)-M2执行物理文件上传（特殊方法）-文件内容不能为空", false);
        Assert.isNull(phpFileUploadReq.getDocUseType(), "D2执行物理文件上传(公共)-M2执行物理文件上传（特殊方法）-文档用途类型不能为空", false);
        Assert.isNull(phpFileUploadReq.getPhyFileUuid(), "D2执行物理文件上传(公共)-M2执行物理文件上传（特殊方法）-物理文件UUID不能为空", false);
        Assert.isNull(phpFileUploadReq.getResourceFileExtension(), "D2执行物理文件上传(公共)-M2执行物理文件上传（特殊方法）-资源文件后缀不能为空", false);
        phpFileUploadRes = nbNetDisk.implementPhpFileUpload(phpFileUploadReq);


        phpFileUploadRes_1 = phpFileUploadRes;

        ImplementPhpFileUploadComRespDto retData = new ImplementPhpFileUploadComRespDto();
        if (phpFileUploadRes_1 != null) {
            retData.setResourceFileSize(phpFileUploadRes_1.getResourceFileSize());//SimpleFieldAssign//sourceId:2033731_1
        }


        return retData;
    }
    //
}
